package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 优惠券使用情况对象 coupon_used_info
 * 
 * @author ruoyi
 * @date 2024-01-04
 */
public class CouponUsedInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 优惠券抢购编号 */
    private Long receiveId;

    /** 优惠券编号 */
    @Excel(name = "优惠券编号")
    private Long couponId;

    /** 优惠券抢得者账号 */
    @Excel(name = "优惠券抢得者账号")
    private String receiverUserid;

    /** 优惠券是否使用（0未使用，1已使用） */
    @Excel(name = "优惠券是否使用", readConverterExp = "0=未使用，1已使用")
    private Long isused;

    /** 优惠券所使用的订单号 */
    @Excel(name = "优惠券所使用的订单号")
    private Long useOrderId;

    public void setReceiveId(Long receiveId) 
    {
        this.receiveId = receiveId;
    }

    public Long getReceiveId() 
    {
        return receiveId;
    }
    public void setCouponId(Long couponId) 
    {
        this.couponId = couponId;
    }

    public Long getCouponId() 
    {
        return couponId;
    }
    public void setReceiverUserid(String receiverUserid) 
    {
        this.receiverUserid = receiverUserid;
    }

    public String getReceiverUserid() 
    {
        return receiverUserid;
    }
    public void setIsused(Long isused) 
    {
        this.isused = isused;
    }

    public Long getIsused() 
    {
        return isused;
    }
    public void setUseOrderId(Long useOrderId) 
    {
        this.useOrderId = useOrderId;
    }

    public Long getUseOrderId() 
    {
        return useOrderId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("receiveId", getReceiveId())
            .append("couponId", getCouponId())
            .append("receiverUserid", getReceiverUserid())
            .append("isused", getIsused())
            .append("useOrderId", getUseOrderId())
            .toString();
    }
}
